package com.lqjava.tuxiaowang.tuxiaowang.serverapp;

import cn.hutool.core.date.DateUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
@MapperScan("com.lqjava.tuxiaowang.tuxiaowang.beans.mapper")
@ComponentScan({"com.lqjava.tuxiaowang.tuxiaowang.beans","com.lqjava.tuxiaowang.tuxiaowang.serverapp"})
public class TuxiaowangServerApp {

    public static void main(String[] args) {
        SpringApplication.run(TuxiaowangServerApp.class, args);
    }

    @RequestMapping(value = {"","/test","/open/test"})
    public String test(){
        return DateUtil.now();
    }

}
